package org.jsola.hr.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.jsola.core.Page;
import org.jsola.core.Result;
import org.jsola.hr.dto.EmpSocBackResponsibleAddDTO;
import org.jsola.hr.dto.EmpSocBackResponsibleUpdateDTO;
import org.jsola.hr.dto.SetSocBackResponsibleDTO;
import org.jsola.hr.query.EmpSocBackResponsibleQuery;
import org.jsola.hr.vo.EmpSocBackResponsibleListVO;
import org.jsola.hr.vo.EmpSocBackResponsibleVO;

import java.util.List;

/**
 * 社保回款负责人信息
 *
 * @author zhr
 */
@Api(tags = "hr-社保回款负责人信息")
public interface IEmpSocBackResponsibleControllerAPI {

    /**
     * 新增社保回款负责人信息
     *
     * @param empSocBackResponsibleAddDTO 社保回款负责人信息新增实体
     * @return 社保回款负责人信息展示对象
     */
    @ApiOperation(value = "新增社保回款负责人信息")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empSocBackResponsibleAddDTO", dataType = "EmpSocBackResponsibleAddDTO", value = "新增社保回款负责人信息", paramType = "body")
    })
    Result<EmpSocBackResponsibleVO> save(EmpSocBackResponsibleAddDTO empSocBackResponsibleAddDTO);


    /**
     * 修改社保回款负责人信息
     *
     * @param empSocBackResponsibleUpdateDTO 社保回款负责人信息
     * @return 更新数量
     */
    @ApiOperation(value = "修改社保回款负责人信息")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empSocBackResponsibleUpdateDTO", dataType = "EmpSocBackResponsibleUpdateDTO", value = "修改社保回款负责人信息", paramType = "body")
    })
    Result<Integer> update(EmpSocBackResponsibleUpdateDTO empSocBackResponsibleUpdateDTO);


    /**
     * 删除单个社保回款负责人信息，彻底删除
     *
     * @param empSocBackResponsibleId 社保回款负责人信息id
     * @return 删除数量
     */
    @ApiOperation(value = "删除单个社保回款负责人信息，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empSocBackResponsibleId", dataType = "String", value = "社保回款负责人信息id", paramType = "path")
    })
    Result<Integer> delete(String empSocBackResponsibleId);


    /**
     * 批量删除社保回款负责人信息，彻底删除
     *
     * @param empSocBackResponsibleIds 社保回款负责人信息id集合
     * @return 删除数量
     */
    @ApiOperation(value = "批量删除社保回款负责人信息，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empSocBackResponsibleIds", dataType = "String[]", value = "社保回款负责人信息id数组", paramType = "body", allowMultiple = true)
    })
    Result<Integer> deleteBatch(String[] empSocBackResponsibleIds);


    /**
     * 根据社保回款负责人信息id查询社保回款负责人信息详情
     *
     * @param empSocBackResponsibleId 社保回款负责人信息id
     * @return 社保回款负责人信息详情
     */
    @ApiOperation(value = "根据社保回款负责人信息id查询社保回款负责人信息详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empSocBackResponsibleId", dataType = "String", value = "社保回款负责人信息id", paramType = "path")
    })
    Result<EmpSocBackResponsibleVO> findById(String empSocBackResponsibleId);


    /**
     * 查询社保回款负责人信息
     *
     * @param empSocBackResponsibleQuery 社保回款负责人信息查询参数
     * @return page
     */
    @ApiOperation(value = "查询社保回款负责人信息")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empSocBackResponsibleQuery", dataType = "EmpSocBackResponsibleQuery", value = "社保回款负责人信息查询参数", paramType = "query")
    })
    Result<List<EmpSocBackResponsibleListVO>> listAll(EmpSocBackResponsibleQuery empSocBackResponsibleQuery);


    /**
     * 分页查询社保回款负责人信息
     *
     * @param empSocBackResponsibleQuery 社保回款负责人信息查询参数
     * @return page
     */
    @ApiOperation(value = "分页查询社保回款负责人信息")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empSocBackResponsibleQuery", dataType = "EmpSocBackResponsibleQuery", value = "社保回款负责人信息查询参数", paramType = "query")
    })
    Result<Page<EmpSocBackResponsibleListVO>> page(EmpSocBackResponsibleQuery empSocBackResponsibleQuery);

    /**
     * 设置社保回款计划负责人
     *
     * @param settingsDTO 参数
     * @return code
     */
    @ApiOperation(value = "设置社保回款计划负责人")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "settingsDTO", dataType = "SetSocBackResponsibleDTO", value = "参数", paramType = "body")
    })
    Result<String> settingsResponsible(SetSocBackResponsibleDTO settingsDTO);

}

